import http from '../index';

export const getAll = (data) => http({
    url: '/api/auctions?' + data,
    method: 'get',
    data
})

export const addData = (data) => http({
    url: '/api/auctions',
    method: 'post',
    data
})

export const getDataBy = (data) => http({
    url: '/api/auctions/selectbycondiction?' + data,
    method: 'get',
})


export const editData = (data) => http({
    url: '/api/auctions',
    method: 'put',
    data
})


export const delData = (data) => http({
    url: '/api/auctions/' + data,
    method: 'delete',
    data
})

export const getWthtbh = () => http({
    url: '/api/auctions/getWthtbh',
    method: 'get',
})

export const getWthtbhData = (data) => http({
    url: '/api/auctions/getByWthtbh?wthtbh=' + data,
    method: 'get',
})

export const submit = (data) => http({
    url: '/api/auctions/Submit?' + data,
    method: 'put',
})

export const shelves = (data) => http({
    url: '/api/auctions/Shelves?' + data,
    method: 'put',
})